Traducción al español será siempre la mayor brevedad

Dynamic charts


The outputChart component can be used to dynamically generate and manipulate charts. The data, label and the paint properties can each be bound to Lists in a backing bean. This feature allows developers to easily manipulate the chart properties in their backing bean.

Example

// jsf page snippet
// render a dynamic 3d pie chart
<ice:outputChart type="pie3d"
        chartTitle="Pie3D Chart"
        labels="#{pieChart.labels}"
        width="350"
        height="350"
        data="#{pieChart.data}"
        colors="#{pieChart.paints}"
        renderOnSubmit="#{pieChart.renderOnSubmit}"
/>

// snippet from bean
// List declarations in the bean
private List labels = new ArrayList();
private List data = new ArrayList();
private List paints = new ArrayList();